package com.liu.service;

import com.liu.dao.UserDao;
import com.liu.entity.User;

import java.sql.SQLException;
import java.util.List;

public class UserService {
    private UserDao dao = new UserDao();


    public List<User> findAll(){
        try {
            return dao.findAll();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }
}
